<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1.0,user-scalable=no" />
<title>分享</title>
    <link rel="stylesheet" href="/ruoyi/css/style.css">
    <script src="/ruoyi/js/jquery-3.3.1.js"></script>
	<script src="https://res.sharetrace.com/sharetrace.min.js"></script>


    <style type="text/css">
        *{margin:0; padding:0;}
        a{text-decoration: none;}
        .weixin-tip{display: none; position: fixed; left:0; top:0; bottom:0; background: rgba(0,0,0,0.8); filter:alpha(opacity=80);  height: 100%; width: 100%; z-index: 100;}
        .weixin-tip p{text-align: center; margin: 0; padding:0;}
    </style>
</head>
<body>

<div class="weixin-tip">
    <p>
        <img src="/ruoyi/images/aaahuise.png" style="width: 100%; height:-webkit-fill-available;" alt="在浏览器打开"/>
    </p>
</div>

<img src="/ruoyi/images/fenxiang1.png" class="bggg">
<img src="/ruoyi/images/fenxiang2.png" class="bggg" id="btn" style="margin: -16px 0 -10px 0;">
<img src="/ruoyi/images/fenxiang3.png" class="bggg">
<!--
<div class="ma" style="    margin: 0 21px;position: absolute;top: 40%;">
	<span style="    margin: 5px 0 0 34px;float: left;width: 150px;">邀请码: [[${code}]]</span>
	<a class="copyBtn" style="     width: 75px;line-height: 32px;   margin: 0 25px 0 0;float: left;" href="javascript:"  data-clipboard-action="copy"  data-clipboard-target="#foo">一键复制</a>
</div>
-->

<!--[[${code}]]-->
<!--
<textarea id="biao1" style="width: 0;height: 0;">[[${code}]]</textarea>
<footer>

	<dl>
		<img src="/ruoyi/images/logo.png">
		<span>网红之家</span>
	</dl>
<a href="#">立即下载</a> 
</footer>
-->


<script type="text/javascript">

	$('#btn').click(function(e){
        if (_IsIOS()) {
            alert("暂无下载地址");
        } else {
            location.href = "http://99.zongshengsc.com/apk/jjyh.apk";
        }
	})

    //判断是否为ios端访问
    function _IsIOS() {
        if (/(iPhone|iPad|iPod|iOS)/i.test(navigator.userAgent)) {
            return true;
        } else {
            return false;
        }
    }
    //判断是否为android端访问
    function _IsAndroid() {
        if (/(Android|Adr)/i.test(navigator.userAgent)) {
            return true;
        } else {
            return false;
        }
    }


    function is_weixin() {
        var ua = navigator.userAgent.toLowerCase();
        if (ua.match(/MicroMessenger/i) == "micromessenger") {
            return true;
        } else {
            return false;
        }
    }

    if(is_weixin()){
        var winHeight = $(window).height();
        $(".weixin-tip").css("height",winHeight);
        $(".weixin-tip").show();
    }


	/**复制文本 */
	function copyText(node) {
		if (!node) {
			return;
		}
		var result;
		// 将复制内容添加到临时textarea元素中
		var tempTextarea = document.createElement('textarea');
		document.body.appendChild(tempTextarea);
		if (typeof(node) == 'object') {
			// 复制节点中内容
			// 是否表单
			if (node.value) {
				tempTextarea.value = node.value;
			} else {
				tempTextarea.value = node.innerHTML;
			}
		} else {
			// 直接复制文本
			tempTextarea.value = node;
		}
		// 判断设备
		var u = navigator.userAgent;
		if (u.match(/(iPhone|iPod|iPad);?/i)) {
			// iOS
			// 移除已选择的元素
			window.getSelection().removeAllRanges();
			// 创建一个Range对象
			var range = document.createRange();
			// 选中
			range.selectNode(tempTextarea);
			// 执行选中元素
			window.getSelection().addRange(range);
			// 复制
			result = document.execCommand('copy');
			// 移除选中元素
			window.getSelection().removeAllRanges();

		} else {
			// 选中
			tempTextarea.select();
			// 复制
			result = document.execCommand('Copy');
		}
		// 移除临时文本域
		document.body.removeChild(tempTextarea);
		if (result) {
			alert('复制成功', {
				removeTime: 1000
			})
		} else {
			alert('复制失败', {
				removeTime: 1000
			})
		}

		return result;
	}

</script>

</body>
</html>

